package org.imsetal.ilapi.client;

import org.imsetal.ilapi.config.DefaultFeignConfig;
import org.imsetal.ilapi.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "il-user-service",configuration = DefaultFeignConfig.class)
public interface IlUserServiceClient {
    @PostMapping("login/checkToken")
    Result checkToken(@RequestParam("token") String token);

    @GetMapping("userInfo/checkUserExist")
    Result checkUserExist(@RequestParam("userid") Long userid);
}
